{extend name="public/base" /} 
{block name="container"}
<input type="text" id="search_input" value="">
{/block}
 {block name="js"}
    <script src="__INDEX__/js/plugins/peity/jquery.peity.min.js"></script>
    <script src="__INDEX__/js/content.js?v=1.0.0"></script>
    <script src="__INDEX__/js/plugins/iCheck/icheck.min.js"></script>
<script>
    $(function(){
        document.getElementById('search_input').focus();

        $('#search_input').bind('keydown', function(event) {
            if (event.keyCode == "13") {
                //回车执行查询
                var aa = $('#search_input').val();
                //alert(aa);
                $.post('{:url("index/Administration/kucunAjax")}', {order: aa}, function(data) {
                	if(data.sus == 1){
                         swal({
                        title: "录入成功",      
                        text: "",
                        type: "success"
                    });
                        document.getElementById('search_input').value='';
                    }
                });
                
            }
        });
    });
</script>
{/block}